package com.kun.entity;

import com.kun.util.PaginationUtil;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BorrowRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected PaginationUtil pagination;

    public BorrowRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPagination(PaginationUtil pagination) {
        this.pagination=pagination;
    }

    public PaginationUtil getPagination() {
        return pagination;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBorrowIdIsNull() {
            addCriterion("borrow_Id is null");
            return (Criteria) this;
        }

        public Criteria andBorrowIdIsNotNull() {
            addCriterion("borrow_Id is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowIdEqualTo(String value) {
            addCriterion("borrow_Id =", value, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdNotEqualTo(String value) {
            addCriterion("borrow_Id <>", value, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdGreaterThan(String value) {
            addCriterion("borrow_Id >", value, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdGreaterThanOrEqualTo(String value) {
            addCriterion("borrow_Id >=", value, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdLessThan(String value) {
            addCriterion("borrow_Id <", value, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdLessThanOrEqualTo(String value) {
            addCriterion("borrow_Id <=", value, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdLike(String value) {
            addCriterion("borrow_Id like", value, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdNotLike(String value) {
            addCriterion("borrow_Id not like", value, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdIn(List<String> values) {
            addCriterion("borrow_Id in", values, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdNotIn(List<String> values) {
            addCriterion("borrow_Id not in", values, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdBetween(String value1, String value2) {
            addCriterion("borrow_Id between", value1, value2, "borrowId");
            return (Criteria) this;
        }

        public Criteria andBorrowIdNotBetween(String value1, String value2) {
            addCriterion("borrow_Id not between", value1, value2, "borrowId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_Id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_Id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_Id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_Id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_Id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_Id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_Id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_Id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_Id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_Id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_Id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_Id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_Id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_Id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNull() {
            addCriterion("book_id is null");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNotNull() {
            addCriterion("book_id is not null");
            return (Criteria) this;
        }

        public Criteria andBookIdEqualTo(Integer value) {
            addCriterion("book_id =", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotEqualTo(Integer value) {
            addCriterion("book_id <>", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThan(Integer value) {
            addCriterion("book_id >", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("book_id >=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThan(Integer value) {
            addCriterion("book_id <", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThanOrEqualTo(Integer value) {
            addCriterion("book_id <=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdIn(List<Integer> values) {
            addCriterion("book_id in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotIn(List<Integer> values) {
            addCriterion("book_id not in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdBetween(Integer value1, Integer value2) {
            addCriterion("book_id between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotBetween(Integer value1, Integer value2) {
            addCriterion("book_id not between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Integer value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Integer value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Integer value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Integer value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Integer value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Integer> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Integer> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Integer value1, Integer value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeIsNull() {
            addCriterion("borrow_Time is null");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeIsNotNull() {
            addCriterion("borrow_Time is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeEqualTo(Date value) {
            addCriterion("borrow_Time =", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeNotEqualTo(Date value) {
            addCriterion("borrow_Time <>", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeGreaterThan(Date value) {
            addCriterion("borrow_Time >", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("borrow_Time >=", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeLessThan(Date value) {
            addCriterion("borrow_Time <", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeLessThanOrEqualTo(Date value) {
            addCriterion("borrow_Time <=", value, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeIn(List<Date> values) {
            addCriterion("borrow_Time in", values, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeNotIn(List<Date> values) {
            addCriterion("borrow_Time not in", values, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeBetween(Date value1, Date value2) {
            addCriterion("borrow_Time between", value1, value2, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andBorrowTimeNotBetween(Date value1, Date value2) {
            addCriterion("borrow_Time not between", value1, value2, "borrowTime");
            return (Criteria) this;
        }

        public Criteria andIsDealIsNull() {
            addCriterion("is_Deal is null");
            return (Criteria) this;
        }

        public Criteria andIsDealIsNotNull() {
            addCriterion("is_Deal is not null");
            return (Criteria) this;
        }

        public Criteria andIsDealEqualTo(String value) {
            addCriterion("is_Deal =", value, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealNotEqualTo(String value) {
            addCriterion("is_Deal <>", value, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealGreaterThan(String value) {
            addCriterion("is_Deal >", value, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealGreaterThanOrEqualTo(String value) {
            addCriterion("is_Deal >=", value, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealLessThan(String value) {
            addCriterion("is_Deal <", value, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealLessThanOrEqualTo(String value) {
            addCriterion("is_Deal <=", value, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealLike(String value) {
            addCriterion("is_Deal like", value, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealNotLike(String value) {
            addCriterion("is_Deal not like", value, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealIn(List<String> values) {
            addCriterion("is_Deal in", values, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealNotIn(List<String> values) {
            addCriterion("is_Deal not in", values, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealBetween(String value1, String value2) {
            addCriterion("is_Deal between", value1, value2, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsDealNotBetween(String value1, String value2) {
            addCriterion("is_Deal not between", value1, value2, "isDeal");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeIsNull() {
            addCriterion("is_overtime is null");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeIsNotNull() {
            addCriterion("is_overtime is not null");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeEqualTo(String value) {
            addCriterion("is_overtime =", value, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeNotEqualTo(String value) {
            addCriterion("is_overtime <>", value, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeGreaterThan(String value) {
            addCriterion("is_overtime >", value, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeGreaterThanOrEqualTo(String value) {
            addCriterion("is_overtime >=", value, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeLessThan(String value) {
            addCriterion("is_overtime <", value, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeLessThanOrEqualTo(String value) {
            addCriterion("is_overtime <=", value, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeLike(String value) {
            addCriterion("is_overtime like", value, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeNotLike(String value) {
            addCriterion("is_overtime not like", value, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeIn(List<String> values) {
            addCriterion("is_overtime in", values, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeNotIn(List<String> values) {
            addCriterion("is_overtime not in", values, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeBetween(String value1, String value2) {
            addCriterion("is_overtime between", value1, value2, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andIsOvertimeNotBetween(String value1, String value2) {
            addCriterion("is_overtime not between", value1, value2, "isOvertime");
            return (Criteria) this;
        }

        public Criteria andBookSituationIsNull() {
            addCriterion("book_situation is null");
            return (Criteria) this;
        }

        public Criteria andBookSituationIsNotNull() {
            addCriterion("book_situation is not null");
            return (Criteria) this;
        }

        public Criteria andBookSituationEqualTo(String value) {
            addCriterion("book_situation =", value, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationNotEqualTo(String value) {
            addCriterion("book_situation <>", value, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationGreaterThan(String value) {
            addCriterion("book_situation >", value, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationGreaterThanOrEqualTo(String value) {
            addCriterion("book_situation >=", value, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationLessThan(String value) {
            addCriterion("book_situation <", value, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationLessThanOrEqualTo(String value) {
            addCriterion("book_situation <=", value, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationLike(String value) {
            addCriterion("book_situation like", value, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationNotLike(String value) {
            addCriterion("book_situation not like", value, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationIn(List<String> values) {
            addCriterion("book_situation in", values, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationNotIn(List<String> values) {
            addCriterion("book_situation not in", values, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationBetween(String value1, String value2) {
            addCriterion("book_situation between", value1, value2, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andBookSituationNotBetween(String value1, String value2) {
            addCriterion("book_situation not between", value1, value2, "bookSituation");
            return (Criteria) this;
        }

        public Criteria andResultIsNull() {
            addCriterion("result is null");
            return (Criteria) this;
        }

        public Criteria andResultIsNotNull() {
            addCriterion("result is not null");
            return (Criteria) this;
        }

        public Criteria andResultEqualTo(String value) {
            addCriterion("result =", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotEqualTo(String value) {
            addCriterion("result <>", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThan(String value) {
            addCriterion("result >", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThanOrEqualTo(String value) {
            addCriterion("result >=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThan(String value) {
            addCriterion("result <", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThanOrEqualTo(String value) {
            addCriterion("result <=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLike(String value) {
            addCriterion("result like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotLike(String value) {
            addCriterion("result not like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultIn(List<String> values) {
            addCriterion("result in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotIn(List<String> values) {
            addCriterion("result not in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultBetween(String value1, String value2) {
            addCriterion("result between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotBetween(String value1, String value2) {
            addCriterion("result not between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIsNull() {
            addCriterion("return_time is null");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIsNotNull() {
            addCriterion("return_time is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTimeEqualTo(Date value) {
            addCriterion("return_time =", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotEqualTo(Date value) {
            addCriterion("return_time <>", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeGreaterThan(Date value) {
            addCriterion("return_time >", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("return_time >=", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeLessThan(Date value) {
            addCriterion("return_time <", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeLessThanOrEqualTo(Date value) {
            addCriterion("return_time <=", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIn(List<Date> values) {
            addCriterion("return_time in", values, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotIn(List<Date> values) {
            addCriterion("return_time not in", values, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeBetween(Date value1, Date value2) {
            addCriterion("return_time between", value1, value2, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotBetween(Date value1, Date value2) {
            addCriterion("return_time not between", value1, value2, "returnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeIsNull() {
            addCriterion("actual_return_time is null");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeIsNotNull() {
            addCriterion("actual_return_time is not null");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeEqualTo(Date value) {
            addCriterion("actual_return_time =", value, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeNotEqualTo(Date value) {
            addCriterion("actual_return_time <>", value, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeGreaterThan(Date value) {
            addCriterion("actual_return_time >", value, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("actual_return_time >=", value, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeLessThan(Date value) {
            addCriterion("actual_return_time <", value, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeLessThanOrEqualTo(Date value) {
            addCriterion("actual_return_time <=", value, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeIn(List<Date> values) {
            addCriterion("actual_return_time in", values, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeNotIn(List<Date> values) {
            addCriterion("actual_return_time not in", values, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeBetween(Date value1, Date value2) {
            addCriterion("actual_return_time between", value1, value2, "actualReturnTime");
            return (Criteria) this;
        }

        public Criteria andActualReturnTimeNotBetween(Date value1, Date value2) {
            addCriterion("actual_return_time not between", value1, value2, "actualReturnTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}